import java.util.ArrayList;
import java.util.List;

/**
 * @author Java一对一辅导，手把手带你拿高薪！
 * @WeChat：liuliang70
 * @date 2021/10/30 18:45
 */
public class App2 {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(3);
        list.add(5);
        list.add(7);
        System.out.println(new App2().findNum(list));

       // new App2().npe();
        new App2().print(false);
    }

    public Integer findNum(List<Integer> list) {
        for (int i = 0; i < list.size() - 1; i++) {
            System.out.println(list.get(i));
        }
        return null;
    }

    public void npe() {
        String str = null;
        String[] split = str.split("");
        System.out.println(split);
    }

    public void print(boolean flag) {
        if (flag) {
            System.out.println(flag);
        }
    }


}